package com.master.train.business.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.master.train.common.utils.PageUtils;
import com.master.train.common.utils.Query;

import com.master.train.business.dao.DailyTrainDao;
import com.master.train.business.entity.DailyTrainEntity;
import com.master.train.business.service.DailyTrainService;


@Service("dailyTrainService")
public class DailyTrainServiceImpl extends ServiceImpl<DailyTrainDao, DailyTrainEntity> implements DailyTrainService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DailyTrainEntity> page = this.page(
                new Query<DailyTrainEntity>().getPage(params),
                new QueryWrapper<DailyTrainEntity>()
        );

        return new PageUtils(page);
    }

}